package com.xquant.system.api.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xquant.common.core.annotation.Excel;
import com.xquant.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @author cloud
 * @version 1.0
 * @description:
 * @date 2022/4/22 15:17
 */
public class TsysInterfaceLog extends BaseEntity {


    public int getUnique() {
        return unique;
    }

    public void setUnique(int unique) {
        this.unique = unique;
    }

    private int unique;

    public TsysInterfaceLog() {
        this.unique = false?0:1;
    }

    private static final long serialVersionUID = 1L;


    private Long id;

    /**
     * 业务编码
     */
    @Excel(name = "业务编码")
    private String businNo;

    /**
     * 批次号
     */
    @Excel(name = "批次号")
    private String batchNo;

    /**
     * 操作时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date opTime;

    private String userId;
    /**
     * 操作人
     */
    @Excel(name = "操作人")
    private String nickName;

    /**
     * 操作类型(0 自动，1手动)
     */
    @Excel(name = "操作类型", dictType = "opType")
    private Integer opType;

    /**
     * 动作类型(0 交易簿记，1summit导入)
     */
    @Excel(name = "动作类型", dictType = "actionType")
    private Integer actionType;

    /**
     * 结果(0 失败，1成功)
     */
    @Excel(name = "结果", dictType = "sys_common_status")
    private Integer errCode;

    /**
     * 错误信息
     */
    @Excel(name = "错误信息")
    private String errMsg;

    /**
     * 接口数据
     */
    @Excel(name = "接口数据")
    private String originInfo;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setBusinNo(String businNo) {
        this.businNo = businNo;
    }

    public String getBusinNo() {
        return businNo;
    }

    public void setBatchNo(String batchNo) {
        this.batchNo = batchNo;
    }

    public String getBatchNo() {
        return batchNo;
    }

    public void setOpTime(Date opTime) {
        this.opTime = opTime;
    }

    public Date getOpTime() {
        return opTime;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserId() {
        return userId;
    }

    public void setOpType(Integer opType) {
        this.opType = opType;
    }

    public Integer getOpType() {
        return opType;
    }

    public void setActionType(Integer actionType) {
        this.actionType = actionType;
    }

    public Integer getActionType() {
        return actionType;
    }

    public void setErrCode(Integer errCode) {
        this.errCode = errCode;
    }

    public Integer getErrCode() {
        return errCode;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setOriginInfo(String originInfo) {
        this.originInfo = originInfo;
    }

    public String getOriginInfo() {
        return originInfo;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("businNo", getBusinNo())
                .append("batchNo", getBatchNo())
                .append("opTime", getOpTime())
                .append("nickName", getNickName())
                .append("opType", getOpType())
                .append("actionType", getActionType())
                .append("errCode", getErrCode())
                .append("errMsg", getErrMsg())
                .append("unique", getUnique())
                .append("originInfo", getOriginInfo())
                .toString();
    }
}
